home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
45 Great Windows Utilities 6
/
45 Great Windows Utilities Volume 6 MOJO-405 (Mojo Software).iso
/
stiletto
/
cdd.txt
< prev
next >
Wrap
Text File
|
1995-05-01
|
1KB
|
29 lines
Cdd is a directory changer I find handy when working with drag/drop.
The command
cdd path
changes to the drive and directory specified by path (Dos cd does not
handle drive changes). If path is a file name, cdd will change to
the directory containing the file. For example,
cdd d:\test\myfile.txt
changes to drive d:, directory test (assuming myfile.txt is a file).
I use cdd to quickly virus check the contents of zipped files.
First, I unzip files from File Manager by putting the zip in a temporary
directory and then double clicking on it. (I have associated .zip with
a pif which runs pkunzip.exe in a window). Then I drag/drop any file
from the unzipped package onto a button which I have configured to run
my virus scanner as follows.
I have created a pif file containing the command c:\ut\b\checkvir.bat.
The batch file checkvir.bat contains these commands:
cdd %1
c:\f-prot\f-prot *.*
I assign this pif file to a Stiletto button. I now drag/drop any file
from the zipped package onto the button, and my virus checker -- f-prot
-- gets run on the directory containing the file.
The files cdd.exe and cdd.txt are in the public domain.